package com.mmy.service.impl.sys;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mmy.dao.sys.TSysTogetherRepository;
import com.mmy.service.sys.SysTogetherService;

@Service
public class SysTogetherServiceImpl implements SysTogetherService {
	@Autowired
	private TSysTogetherRepository tSysTogetherRepository;

	/**
	 * 获得最大编号
	 * 
	 * @return 返回值说明 最大ID
	 * @author 创建人 hanxl
	 * @date 创建日期 2021.01.20
	 */
	public int getMaxID() {
		// 流水号
		Object objCode = tSysTogetherRepository.getMaxID();
		int iID = 0;
		if (objCode != null) {
			iID = Integer.parseInt(objCode.toString());
		}
		return iID;
	}

}
